.tabbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  background-color: #31313a;
}

.tabbar-left {
  display: flex;
  align-items: center;
}

.left-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin-left: 10px;
}

.tabbar-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.light {
  width: 100px;
  height: 100%;
}

.dark {
  width: 100px;
  height: 100%;
  cursor: pointer;
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background-color: orange;
  border-radius: 50%;
  cursor: pointer;
}

.moon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + -8px), calc(-50% + -16px));
  width: 54px;
  height: 54px;
  box-shadow: 8px 16px 0 cyan;
  border-radius: 50%;
}

.sun-box,
.sun,
.moon-box,
.moon {
  transition: all 1s ease-in-out;
}

.sun-box,
.moon-box {
  position: relative;
  overflow: hidden;
}

.light > .sun-box {
  height: 100%;
}

.light > .moon-box {
  height: 0;
}

.dark > .sun-box {
  height: 0;
}

.dark > .moon-box {
  height: 100%;
}
